import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件
import App from "./App.vue";
import Index from "./Index.vue";
import Video from "./Video.vue";

// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);

const routes = [
    {
        path:"/",
        component: Index
    },
    {
        path: "/video",
        component: Video
    }
]

var router =  new VueRouter({
    routes
})
export default router;
